const express = require('express');
const T_subjectRouter = require('../router_handler/T_subject');

const router = express.Router()

//查询全部科目信息
router.get('/exam/T_subject/list', T_subjectRouter.getAll_subject)
//通过id来删除科目信息
router.get('/exam/T_subject/info', T_subjectRouter.delete_subjectById)
//更新科目
router.put('/exam/T_subject/update', T_subjectRouter.updatet_subject)
//插入科目（没有绑定用户）
router.post('/exam/T_subject/add', T_subjectRouter.createt_subject)
//插入科目（绑定用户）
router.post('/exam/T_subject/add/subject_use', T_subjectRouter.createt_subject_use)
//删除科目
router.delete('/exam/T_subject/delete/:id', T_subjectRouter.delete_subjectById)
//通过科目id来查询科目
router.get('/exam/T_subject/info/:id', T_subjectRouter.getT_subjectrById)
//通过科目id来查询科目（数组形式）
router.get('/exam/T_subject/getSubjectName', T_subjectRouter.getSubjectName)
//上传教学大纲
router.post('/exam/T_subject/uploadDocumen', T_subjectRouter.getuploadDocumen)
//上传人才培养
router.post('/exam/T_subject/getuploadPEOPLE', T_subjectRouter.getuploadPEOPLE)
//上传培养目标
router.post('/exam/T_subject/getuploadPei', T_subjectRouter.getuploadPei)
//上传认证体系
router.post('/exam/T_subject/getuploadReng', T_subjectRouter.getuploadReng)
//查看教学大纲路径
router.get('/exam/T_subject/Get_T_user_a_c_s_and_Path', T_subjectRouter.Get_T_user_a_c_s_and_Path)
//查看人才培养路径
router.get('/exam/T_subject/Get_T_user_a_c_s_and_PeoplePath', T_subjectRouter.Get_T_user_a_c_s_and_PeoplePath)
//查看培养目标路径
router.get('/exam/T_subject/Get_T_user_a_c_s_and_PeiPath', T_subjectRouter.Get_T_user_a_c_s_and_PeiPath)
//查看认证体系路径
router.get('/exam/T_subject/Get_T_user_a_c_s_and_RengPath', T_subjectRouter.Get_T_user_a_c_s_and_RengPath)
//查看教学大纲/人才培养/培养目标、认证体系
router.get('/exam/T_subject/getDocumen', T_subjectRouter.getDocument)
//添加课程（与教学大纲相关）
router.post('/exam/T_subject/add/addClass', T_subjectRouter.addClass)
//更新课程（与教学大纲相关）
router.put('/exam/T_subject/updateClassDescription', T_subjectRouter.updateClassDescription)
//删除课程（与教学大纲相关）
router.delete('/exam/T_subject/deleteRecord', T_subjectRouter.deleteRecord)
//导出
module.exports = router